/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.pucp.cpnc.mm.servimp;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import pe.edu.pucp.cpnc.mm.manager.CmdManager;

/**
 *
 * @author alulab11
 */
public class MapMakerServerDemo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        CmdManager cmd = new CmdManager();
        cmd.loadDB("Resources.xml");
        
        try{
            Registry reg = LocateRegistry.createRegistry(1099);
            reg.rebind("MMServer1", new MMServicesImp(cmd));
            System.out.println("Servidor levantado.");
        }catch(RemoteException ex){
            ex.printStackTrace();
        }
    }
    
}
